<template>
  <div class="user-center common-layout">
    <el-container>
      <!-- Aside -->
      <el-aside width="250px">
        <user-center-aside />
      </el-aside>

      <!-- Main -->
      <el-main style="padding: 0 0 0 25px ;">
        <!-- 路由出口，路由匹配到的组件将渲染在这里 -->
        <!-- <router-view /> -->
        <router-view v-slot="{ Component }">
          <transition name="el-fade-in" mode="out-in">
            <div :key="Component">
              <component :is="Component" />
            </div>
          </transition>
        </router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import UserCenterAside from '../../../components/UserCenterAside.vue';
</script>

<style lang="less" scoped>
.user-center {
  width: 70%;
  margin: 30px auto 0 auto;
}
</style>